package com.neuedu.spring.service;

import com.neuedu.spring.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

/**
 * 项目：spring-java4
 * 创建时间：  2022-03-21   8:44
 * 作者 :jshand
 * 描述 :
 */
//@Component
@Service
public class UserService {

    //通过反射注入
    @Autowired
    private UserDao userDao;

    public void queryById() {
        System.out.println("调用Service方法");
        userDao.selectById();
    }

}
